import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";
import Mine from "../views/Mine.vue";
import Reading from "../views/Reading.vue"

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "Home",
    component: Home,
  },
  {
    path: "/about",
    name: "About",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () =>
      import(/* webpackChunkName: "about" */ "../views/About.vue"),
  },
  {
    path : "/mine",
    name : "Mine",
    component : Mine
  },
  {
    path:"/find",
    name:"find",
    component:() =>
      import ( "../views/find.vue"),
  },
  {
    path:"/mypeng",
    name:"mypeng",
    component:() =>
      import ("../components/Mypeng.vue"),
  },
  {
    path:"/myxiao",
    name:"myxiao",
    component:() =>
      import ("../components/Myxiao.vue"),
  },
  {
    path:"/mymian",
    name:"mymian",
    component:() =>
      import ("../components/Mymian.vue"),
  },
  {
    path:"/myfu",
    name:"myfu",
    component:() =>
      import ("../components/Myfu.vue"),
  },
  {
    path: "/reading",
    name: "Reading",
    component:Reading,
  },
  {
    path:"/bookshelf",
    name:"bookshelf",
    component:()=>import('../views/Bookshelf.vue'),
  },
];

const router = new VueRouter({
  routes,
});

export default router;
